<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <title>ueditor demo</title>
<style>
    table{
        width:500px;
    }
    table textarea{
        width:300px;
    }
</style>
</head>

<body>
<table>
    <tr>
        <td>商品细节展示</td>
        <td style="width:800px;">
            <!-- 加载编辑器的容器 -->
            <textarea style="width:300px;" name="" id="content" cols="30" rows="10">

            </textarea>
        </td>
    </tr>
</table>
    
    <!-- 配置文件 -->
    <script type="text/javascript" src="__ROOT__/Public/Ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__ROOT__/Public/Ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');

    </script>
    <script type="text/javascript">
          window.UEDITOR_HOME_URL ="__ROOT__/Public/Ueditor/";//指出ueditor的存放路径
          window.onload=function(){
              UE.getEditor('content');//要传入一个ID才能显示编辑器，即textarea中的id
          }
    </script>
</body>

</html>